/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uy.edu.ort.CentroEstudios.entidades;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author scirillo
 */
@Entity
public class Materia implements Serializable {
    @Id
    private String idMateria;
    private String nombreMateria;

    public void setIdMateria(String idMateria) {
        this.idMateria = idMateria;
    }

    public void setNombreMateria(String nombreMateria) {
        this.nombreMateria = nombreMateria;
    }

    public String getIdMateria() {
        return idMateria;
    }

    public String getNombreMateria() {
        return nombreMateria;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + (this.idMateria != null ? this.idMateria.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Materia other = (Materia) obj;
        if ((this.idMateria == null) ? (other.idMateria != null) : !this.idMateria.equals(other.idMateria)) {
            return false;
        }
        return true;
    }
    
}
